<?php


class AuthController extends ControllerAction_Abstract  {
	
	public function langAction(){		
		$local = $this->getParam('local');
		if(empty($local)){
			$local = $this->_config->local->default;
		}
		$s = new Zend_Session_Namespace('local');
		$locale_session = $this->_config->local->session_name;
		$s->$locale_session = $local;
		$this->_redirect($this->_pageInfo->getModule());
	}	
}